<template>
  <!-- <RouterView /> -->
  <router-view v-slot="{ Component }">
    <keep-alive>
      <component :is="Component"  v-if="$route.meta.keepAlive"/>
    </keep-alive>
    <component :is="Component"  v-if="!$route.meta.keepAlive"/>
  </router-view>
</template>

<script setup>
import { onUnmounted } from 'vue';
import { RouterView } from "vue-router";
onUnmounted(() => {
  window.localStorage.removeItem("token");
  window.localStorage.removeItem("walletAddress");
})
</script>

<style scoped lang="scss"></style>
